@import url("../../common/less/function.less");
@import url("../../common/less/ui.less");

.g-mn{
  float: left;
  width: 100%;
  .m-mad{
    width: 100%;
    float: left;
    overflow: hidden;
    margin: 0 10px 0 0;
    height: 350px; 
    position: relative;
    .m-mad-tab {
      width:100%;
      position: absolute;
      z-index: 1;
      margin-left: -50%;
      li{  list-style: none; float: left}
      img{background: url("../../common/img/loading.gif") center no-repeat;}
    }
    .m-mad-con{
      height: 18px; 
      position: absolute; 
      z-index: 999;
      bottom: 10px;
      right: 50%; 
      cursor: pointer;
      background: rgba(0,0,0,0.5);
      border-radius: 8px;
      display: inline-block;
      padding-left: 10px;
      li{
        float: left;
        background-color: #ddd;
        list-style: none;
        width: 12px;
        color: #fff;
        height: 12px;
        border-radius: 50%;
        margin: 3px 10px 0 0;
        text-indent: -9999px;
        &.z-crt{ background-color: #e53363; }
      }
    }
  }
  .m-mad-mark{
    width: 100%;
    height: 350px; 
    position: relative;
    margin-left: 50%;
  }
}

.m-advantage i,.m-shopping,.cate_icon,.arrow_icon,.m-nav li.z-crt,.m-offshelf-list h3 span,.limit em,.timer .clock
{background: url(../../web/img/index_sprite.png) no-repeat;}

.g-hd{
  width: 100%; background-color: @hbgc;
  .m-logo{ display:block;float: left; width: 400px;
  }  
  .m-advantage{
    .fs16;
    display: inline-block;
    float: left;
    width: 430px;
    height: 60px;
    line-height: 60px;
    margin-left: 125px;
    a{display: inline-block;*display: inline;*zoom: 1; margin-right: 10px;color: #e61f7e;}
    i{
      display: inline-block;
      width: 40px;
      height: 40px;
      vertical-align: middle;
      margin-right: 10px;
    }
    .u-bao{background-position: 0 0;}
    .u-tui{background-position: -48px 0;}
    .u-you{background-position: -96px 0;}
  }
  .m-shopping{
    display: inline-block;
    float: left;
    width: 170px;
    height: 40px;
    line-height: 40px;
    margin: 10px 0 0 50px;
    background-position: -144px 0;
    a{
      .fs16;
      display: inline-block;
      padding-left: 60px;
      color: #e61f7e;
    }
  }
  .m-nav{
    width: 100%; height:40px; background:url(../../web/img/menu_bg.jpg) repeat-x;
    *position: relative;
    *z-index: 1;
    .alltype{
      position: relative;
      background: url(../../web/img/list_bg.png) no-repeat right center;
      .z-crt {
        float: left;
        width: 186px;
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        color: #fff;
        display: block;
        text-align: center;
        background: url(../../web/img/list_bg.png) no-repeat left center;
        .font-yh();
        .cate_icon{
          display: inline-block;
          width: 16px;
          height: 16px;
          background-position:0 -74px;
          vertical-align: middle;
          margin-right: 10px;
        }
        .arrow_icon{
          display: inline-block;
          width: 11px;
          height: 7px;
          background-position:0 -98px;
          vertical-align: middle;
          margin-left: 10px;
        }
      }
      .m-sub-nav{
        width: 186px;
        border: 2px solid #C21068;
        border-top: 0;
        height: 378px;
        overflow: hidden;
        position: absolute;
        top:40px;
        left: 0px;
        font-family: tahoma,\5b8b\4f53,arial;
        z-index: 9999;
        background: #fff;
        dl{
          padding: 5px 0 10px 0px ;text-justify : auto; text-align:justify;
          dt{
            .fs12();
            .font-st();
            color: #4f4f4f;
            line-height: 2.5em;
            font-weight: bold;
            width: 170px;
            overflow: hidden;
            padding-left: 9px;
          }
          dd{
            line-height: 2em;
            a{
              display: inline-block;
              float: left;
              color: #826f6f;
              white-space: nowrap;
              padding-left: 9px;
              &:hover{
                color: #fa3434;
              }
            }
          }
        }
      }
    }
    .each {
      position: relative;
      background: url(../../web/img/list_bg.png) no-repeat right center;
      .light{background: @navhover;} 
      a{
        display: inline-block;
        width: 98px;
        text-align: center;
        line-height: 40px;
        font-size: 14px;
        color: white;
        .font-yh();
        &:hover {
          background: url(../../web/img/active.jpg) no-repeat;
          color: #e61f7e;
        }
      }
      .z-crt{
        background: url(../../web/img/active.jpg) no-repeat;
        color: #e61f7e;
      }
    }
    .u-sch{
      width: 280px;
      float: right;
      color:#7d7c7c;
      margin: 4px 80px 0 0;
      z-index: 999;
      .sch-keywords{
        margin-top: 10px;
        padding-left: 5px;
        a{margin-right: 10px; color:#7d7c7c}
      }
    }
  }
}

//左边浮动内容
.g-side{
  position: fixed;
  right: 50%;
  top: 50px;
  width: 144px;
  height: 419px;
  z-index: 10000;
  margin-right: 590px;
  float: right;
  _position: absolute;
  _top: ~'expression(documentElement.scrollTop+documentElement.clientHeight-this.offsetHeight-100)';
  background: url(../../web/img/side_bg.png) no-repeat;
  a{
    display: inline-block;
    width: 120px;
    height: 120px;
    margin: 10px 12px 0 12px;
  }
}

//商品列表
.g-wrap-left{
  float: left;
  display: inline-block;
  width: 900px;
}
.g-wrap-right{
  float: right;
  display: inline-block;
  width: 260px;
  margin-left: 10px;
  .m-goods-list{
    width: 100%;
    ul{
      .oh();
      width:190px;
    }
  }
}
.m-goods-list{
  ul{
    width: 900px;
    li{
      width: 175px;
      .goods-info{
        width: 175px;
        img{width: 175px;height:175px;}
      }
      .price{width: 155px;}
    }
  }
}


.m-limit-sell,.m-brand,.m-new-good{
  margin-top:15px;
  .m-tt{
    height: 45px;line-height:45px; width: 100%; border-bottom:2px solid #e40b7c; position: relative;
    h1{
      width: 200px;
      color:#e20c7e;
      .fs18();
      .font-yh();
      background: url("../img/surprise.png") no-repeat;
    }
    a{
      position: absolute;right: 10px;top:5px; color: #666; .font-st();
        &:hover{
          color:#eb2323;
        }
    }
  }
}
.m-new-good{
  .g-wrap-left{
    .m-tt{
      border-bottom: none;
      h1{ background: none;width: 100%;text-align: center;}
    }
  }

}

.m-goods-list{
  ul{
    width:900px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 0 0 10px 10px;
    margin-bottom: 10px;
    .u-product-logo{
      width: 150px;
      background: #fff;
      text-align: center;
      .goods-info{
        width: 150px;
        padding-top: 80px;
        img{ width: 150px;height: 50px; }
      }&:hover{
      background: #fff;
    }
    }
  }
}

.m-update-list{
  background: #fff;
  border: 1px solid #ddd;
  margin-top: 45px;
  height: 320px;
  .m-nav{
    height: 31px;
    background: #eee;
    margin-bottom: 15px;
    li{
      padding: 0;
      line-height: 31px;
      width: 129px;
      .fs14;
      border-bottom: 1px solid #dcdcdc;
      cursor: pointer;
    }
    .z-crt{ background-color: #fff;border-bottom: none;
      &.z-l{background-position: 62px -74px;}
      &.z-r{background-position: -78px -74px;}
    }

  }
  ul{
    width: 259px;
    li{
      float: left;
      width: 129px;
      text-align: center;
      padding: 5px 0;
    }
  }
}
.m-offshelf-list{
  h3{
    line-height: 24px;
    *line-height: 20px;
    margin:10px 0;
    .fs16;
    span{
      display: inline-block;
      width: 11px;
      height: 24px;
      margin-right: 5px;
      vertical-align: middle;
      background-position: 0 -113px;
    }
  }
  .j_ImgLoad{
    padding: 5px 5px 0 5px;
    border:1px solid #ddd;
    background-color: #fff;
    overflow: hidden;
    li{
      margin-bottom: 5px;
      *margin-bottom: 2px;
      overflow: hidden;
      a{
        width: 100px;
        height: 100px;
        margin-right: 5px;
        img{height: 100px;width: 100px;}
      }
      h4{float: left;width: 140px;font-weight: normal;height: 36px;overflow: hidden;}
      & a:hover{ 
        text-decoration: underline;
        color: #eb2323;
      }
      .price{width: 140px; margin: 10px 0;color: #e84c90;
        .new-price{ 
          em{font-weight: bold;}
        }
        .limit{
          em{
            display:inline-block;width: 11px;height: 18px; 
            margin-right:5px; vertical-align: middle;
            background-position:-29px -50px;}
        }
      }
      .timer{
        color:#999;
        .clock{display:inline-block;width: 16px;height: 20px;vertical-align: middle;
          background-position: 0 -49px; 
        }
      }
    }
  }
}

.m-limit-sell{
  ul{
    li{
      .goods-info{
        position: absolute; z-index: 999; bottom:0px;width: 100%; height: 60px; display: block; background-color: #f9f9f9;
        .goods-tit{
          .fs12();
          font-weight: 400;
          height:32px;
          line-height: 32px;
          padding:0 10px;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          cursor: pointer;
          &:hover {
            color: #eb2323;
            text-decoration: underline;
          }
        }
        p{
          height: 20px;
          line-height: 20px;
          padding: 0 10px;
          .icon{
            font-family: arial;
            font-size: 12px;
            color: #eb2323;
            font-weight: bold;
          }
          .price {

            font-size: 14px;
            color: #ff3366;
            font-weight: bold;
          }
          del{
            color: #4f4f4f;
            font-size: 12px;
            float: right;
          }
        }
      }
    }
  }
}


.m-limit-sell{
  .m-tt{
    h1{ background-position: -114px -77px;}
  }
  ul{
    margin-right: -10px;
    li{
      width: 162px; height: 340px; float: left; margin: 10px 0.3% 0 0;overflow: hidden; position: relative;
      img{
        display:block; width: 162px;
      }
      a{
        &:hover{
          img{
            .opacity(85);
          }
        }
      }
      .goods-info{
        .opacity(80);
        p{
          .icon,.price{ font-weight: normal;}
        }
      }
    }
    .limit-sell-focus{
       width: 190px; margin-right: 10px;
      img{
        width: 190px; margin:0px;
      }
      .goods-hot{
        position: absolute; z-index: 999; bottom:60px ; background-color: #f9f9f9;.opacity(80);padding:10px; width: 170px;
        h3{text-align: center;font-family:\5fae\8f6f\96c5\9ed1;.fs16();}
        fieldset {
          border-top: 1px solid #ff4c8e;
          legend {
            padding: 0 10px;
            color: #ff4c8e;
        }
      }
    }
  }
}
}
.m-brand{
  overflow: hidden;
  .m-tt{
    h1{ background-position: -135px -120px;}
  }
  .brand-list{
    width:1001px; overflow: hidden; height: 250px; margin: 10px 0 0;
    .brand-list-tab{
      li{
        position: relative;
        display: block;
        padding: 0 14px;
        width: 161px;
        height: 60px;
        line-height: 60px;
        background-color:#f1f1f1;
        text-align: center;
        cursor: pointer;
        .font-yh();
        .fs14();
        &.z-link-crt,&:hover{
          background-color:#e40b7c; color: #fff;
          .item1{background-position:-41px -19px;}
          .item2{background-position:-42px -60px;}
          .item3{background-position:-42px -102px;}
          .item4{background-position:-38px -145px;}
          i{.triangle-l(8px,#fff); position: absolute; right: 0px; top: 20px;}
          div{  border:none;}
        }
        span{
          background: url("../img/surprise.png") no-repeat;
          padding: 15px 19px;
        }
       .item1{background-position:0 -19px;}
       .item2{background-position:0 -60px; }
       .item3{background-position:0 -102px;}
       .item4{background-position:6px -145px;}
        div{
          width: 161px; border-bottom: 1px solid #e5e5e5;height: 59px;}
      }
    }
    .brand-list-wrap{
      width: 790px; height: 250px;overflow: hidden;margin: 0 11px; position: relative;
    }
  }

  .brand-img{
    width: 189px; height: 240px; margin: 10px 0 0;
    img{width: 189px; height: 240px; }
  }
}
 .brand-list-con{
        width: 792px;height: 240px; padding-top: 2px; overflow: hidden;text-align: center;
        li{
          float: left; margin-left: 1px;
          a{
            display: block; width: 195px; margin-top: -1px; margin-right:-2px; height: 68px; border: 1px dashed #f2f2f2; padding-top: 10px;
          }
          img{
              vertical-align: middle;
            }
            p{line-height: 24px;}
            &:hover{ color: #eb2323}
        }
      }
//订单和我的消息数量
#unread,#unpay{
  color: #fff;
  background-color: #eb2323;
  height:15px;
  width:15px;
  line-height: 14px;
 .border-radius(50%,50%,50%,50%);
  position:absolute;
  top:-11px;
  right:1px;
  font-weight: normal;
  text-align:center;
  font-size: 12px;
}
@media (max-width: 1366px){
  .g-wrap{ width:1000px}
  .g-wrap-left{
      width: 715px;
      .m-goods-list{
        ul{
          width: 715px;
          height: 244px;
          overflow: hidden;
        }
      }
  }
  .g-side{margin-right: 490px;}
  .g-hd{
    .m-logo{
      width: 300px;
      img{width: 300px;}
    }
  }
  .g-hd .m-advantage{margin-left: 45px;}
  .m-limit-sell .m-tt, .m-brand .m-tt, .m-new-good .m-tt{ width:100%;}
  .m-brand .brand-list .brand-list-wrap{ width:590px;}
  .m-brand .brand-list {width:801px;}
  .m-brand .brand-list .brand-list-wrap .brand-list-con{width:612px;}
  .m-brand .brand-list .brand-list-wrap .brand-list-con li a{width:196px;}
  .m-limit-sell ul li{ width:155px;margin: 10px 3px 0px 0px;}
  .m-limit-sell ul li img{width:155px;}
} 
@media (max-width: 1280px){
  .g-side{display: none;}
}
@media (max-width: 1200px){
  .g-wrap{ width:1000px}
  .g-wrap-left{
      width: 715px;
      .m-goods-list{
        ul{
          width: 715px;
          height: 240px;
          overflow: hidden;
        }
      }
  }
  /*.g-mn .m-mad{width:550px;}
  .g-mn .m-adshow{ width:790px;} */


}
.w990{
  .g-wrap{ width:990px}
  .g-mn{
    .m-mad{width:550px;}
    .m-adshow{ width:790px;}
    } 
  .m-limit-sell .m-tt, .m-brand .m-tt, .m-new-good .m-tt{ width:100%;}
  .m-brand{
    .brand-list{
      width:801px;
      .brand-list-wrap{ 
        width:590px;
        .brand-list-con{
          width:612px;
          li{
            a{width:196px;}
            } 
          }
        }
      }
    } 

  .m-limit-sell{
    ul{
      overflow:hidden;
      height:350px;
      li{
       width:155px;margin: 10px 3px 0px 0px;
       img{width:155px;}
        }
      } 
      .limit-sell-focus{
       width:190px;
       img{width:190px;}
      }
    } 
  .m-goods-list{
    ul{
      width:585px;
      li{
        width:185px;
        .price{ width:165px;}
        }
      }
      .goods-info { 
        width:185px;
        img{ width:185; height:185;}
      }
    } 

} 
//首页导航三八专场new小图片
.abs_icon{
   background-image: url("../img/new.gif");
    .inBk();
    height: 23px;
    left: 65px;
    position: absolute;
    top: -10px;
    width: 35px;
    z-index: 1;
}
